package com.nCoV.EpidemicSurveillance.repository;

import java.util.List;

import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.stereotype.Component;

import com.nCoV.EpidemicSurveillance.domain.StudentNodes;

/**
 * @author 张浩田
 * @date 2020年3月14日
 */
@Component
public interface StudentRespository extends Neo4jRepository<StudentNodes, Long> {

	@Query("match (n:Student) return n")
	List<StudentNodes> getNodes();

}
